//
//  LSCustomHeaderView.h
//  LookScore
//
//  Created by wr on 2017/12/8.
//  Copyright © 2017年 ChongQingXunTiCompany. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger , KTableViewHeaderStyle){
    KTableViewHeaderTitleStyle         =0,
    KTableViewHeaderScrollerStyle     =1,
};

@class LSTopSegmentSortView;

@interface LSCustomHeaderView : UITableViewHeaderFooterView

@property(nullable,strong,nonatomic)UIColor *lineColor;

@property(nullable,strong,nonatomic)UIColor *leftTitleColor;

@property(nullable,strong,nonatomic)UIColor *rightTitleColor;

@property(nullable,strong,nonatomic)UIColor *selectedColor;

@property(nullable,strong,nonatomic)UILabel *timeLab;

@property(nullable,strong,nonatomic)UILabel *siteLabOne;

@property(nullable,strong,nonatomic)UILabel *siteLabTwo;

@property(nullable,strong,nonatomic)UILabel *siteLabThree;

@property(nullable,strong,nonatomic)NSArray *siteArray;//右侧显示lebel

@property(nullable,strong,nonatomic)UIView *lineView;

@property(nullable,strong,nonatomic)NSArray *scrolArray;

@property(assign,nonatomic)CGFloat spaceWidth;//控件间隙

@property(nullable,strong,nonatomic)NSMutableArray *acrossWidthArr;//移动的线宽度

@property(nullable,strong,nonatomic)UIButton *segmentBtn;

@property(nullable,strong,nonatomic)UIView *acrossView;

@property (nonatomic, assign) NSInteger selectTag;
@property(nullable,copy,nonatomic)void(^butonActionBlock)(NSInteger tag);

- (nullable instancetype)initWithReuseIdentifier:(nullable NSString *)reuseIdentifier  style:(KTableViewHeaderStyle )style ;


-(void)setScrolArray:(nullable NSArray *)scrolArray spaceWidth:(CGFloat )spaceWidth titleColor:(nullable UIColor *)titleColor  seletedColor:(nullable UIColor *)seletedColor with:(NSInteger)selectedtag;


@end

@interface LSTopSegmentSortView : UIView

@property(nullable,strong,nonatomic)NSArray *bottomArray;

@property(nullable,strong,nonatomic)UIScrollView *scrollView;

@property(nullable,strong,nonatomic)UIView *moveView;

@property(nullable,strong,nonatomic)UIButton  *segmentBu;

@property(nullable,strong,nonatomic)UIColor *selectedColor;

@property(nullable,strong,nonatomic)UIColor *unSelectedColor;

@property(assign,nonatomic)CGFloat controlWidth;

@property(nullable,copy,nonatomic)void(^butonActionBlock)(NSInteger tag);


-(void)addBottomArray:(nullable NSArray *)bottomArray selectButton:(NSInteger )selectTag;

@property (nullable, nonatomic, strong) NSMutableArray * dataArray;
@end
